package com.tommy.consumer.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.function.Consumer;

@Configuration
public class ConsumerConfig {

    @Bean
    public Consumer<String> receiveMessage(){
        return message -> {
            System.out.println("consumer receive msg "  + message);
        };
    }
}
